package com.zhongli.devplatform.controller.im;

import com.zhongli.devplatform.service.imp.im.ManageService;
import com.zhongli.devplatform.bean.Res;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * IM 管理 控制器
 * @author WuXiCheng
 * @version 1.0
 */
@Api(tags = "腾讯云 获取UserSig", description = "腾讯云 IM 获取UserSig")
@RestController
@RequestMapping("/im/manage")
public class ManageController {

    @Autowired
    private ManageService manageService;

    @ApiOperation("获取UserSig")
    @GetMapping("/getUserSig")
    public Res<String> getUserSig(String userId){
        return Res.ok(this.manageService.getUserSig(userId));
    }
}
